import vnode from "./vnode"
export default function(sel,data,params){
	//元素没有子元素
	if(typeof params == "string"){
		//key暂时先不要
		return vnode(sel,data,undefined,params,undefined)
	}else if(Array.isArray(params)){
		let children = []
		for(let item of params){
			children.push(item)
		}
		return vnode(sel,data,children,undefined,undefined)
	}
}